#ifndef __IO_CONFIG_H__
#define __IO_CONFIG_H__

#include "ch32f20x_conf.h"

// nRESET OUT Pin
#define nRESET_PIN_PORT GPIOA
#define nRESET_PIN      GPIO_Pin_4
#define nRESET_PIN_Bit  4

// SWD
#define SWCLK_TCK_PIN_PORT GPIOB
#define SWCLK_TCK_PIN      GPIO_Pin_10
#define SWCLK_TCK_PIN_Bit  10

#define SWDIO_TMS_PIN_PORT GPIOB
#define SWDIO_TMS_PIN      GPIO_Pin_11
#define SWDIO_TMS_PIN_Bit  11

// LEDs
// USB status LED
#define CONNECTED_LED_PIN_PORT GPIOA
#define CONNECTED_LED_PIN      GPIO_Pin_0
#define CONNECTED_LED_PIN_Bit  0

#endif
